#!/bin/bash

echo "=======cpu ======="
ps -aux|sort -rn -k3 |head|awk '{print "momand is:"$NF,"PID is:","%cpu is:",$3}'

echo "======memory======="
ps -aux|sort -rn -k4 |head|awk '{print "momand is:"$NF,"PID is:","%mem is:",$4}'
